package com.jckj.core.contants;

import java.io.File;

/**
 * <p>
 *     数据返回常量
 * </p>
 * @author liuzhiyuan
 * @date 2018-01-03
 */
public class SysContants {

    /**
     * 正常返回
     */
    public static int RET_OK = 200;

    /**
     * 没有授权
     */
    public static int RET_NOT_AUTH = 403;

    /**
     * 没有找到相关资源
     */
    public static int RET_NOT_FOUNED = 404;

    /**
     * 参数错误
     */
    public static int RET_INVALID_PARAM = 400;

    /**
     * 执行错误
     */
    public static int RET_EORROR = 900;

    /**
     * shiro缓存名称
     */
    public static String SHIRO_CACHE_NAME = "shiro-ehcache";

    /**
     * spring缓存名称
     */
    public static String SPRING_CACHE_NAME = "spring-ehcache";


    /**
     * 上传文件路径
     */
    public static final String FILE_UPLOAD_LOCATION = "upload" + File.separator;

    /**
     * 七牛accessKey
     */
    public static final String QN_ACCESS_KEY = "VCdW5AOcBZaWC8QRBgQAY-i5gvfhg4wV_BUzHHi5";

    /**
     * 七牛secretKey
     */
    public static final String QN_SECRET_KEY = "gBO9w0teYykDaw2x61cGx73bT-dNrrLtmPmppKIC";

    /**
     * 七牛buckets
     */
    public static final String QN_BUCKET = "quality";

    /**
     * 是否使用远程资源
     */
    public static final String USE_REMOTE = "user_remote";

    /**
     * 远程服务地址
     */
    public static final String REMOTE_URL  = "remote_url";

    /**
     * 上传文件前缀名称
     */
    public static final String FILE_UPLOAD_PREFIX = "quality_trace/";

    /**
     * 默认页面大小
     */
    public final static Integer LIMIT = 10;


    /**
     * 默认密码
     */
    public final static String DEFAULT_PASSWORD = "123456";
}
